using System.Collections.Generic;
using UnityEngine;

public class butShowShopToMenu : MonoBehaviour
{
	public GameObject saleLabel;

	private void OnEnable()
	{
		ShowSaleLabel(MarketSaleController.instance.EnableSalesInMarket);
	}

	private void ShowSaleLabel(bool enable)
	{
		saleLabel.SetActive(enable);
	}

	private void OnClick()
	{
		if (Load.LoadBool(settings.KeyActionAfterTutor))
		{
			Dictionary<string, string> dictionary = new Dictionary<string, string>();
			dictionary.Add("Action after tutor", "SHOP");
			FlurryWrapper.LogEvent(FlurryWrapper.EV_TUTORIAL_CLOSE, dictionary);
			Save.SaveBool(settings.KeyActionAfterTutor, false);
		}
		InAppPromoController.instance.UpdateJSON();
		settings.playSoundButton();
		MarketController.Instance.ShowMarket();
		FlurryWrapper.LogEvent(FlurryWrapper.EV_OPEN_SHOP_M);
	}
}
